package com.welsy.authoring.vo.course.pattern
{
	
	public class CourseState
	{	
		public static var edit:String = "0";	
		public static var publish:String = "1";
					
		public static var stateCourse:Object = {
								"0":"In Bozza"
							   ,"1":"Pubblicato"
							};	
							
		public static var visibleButton:Object = {
								"0":true
								,"1":false
							};		
							
		public static function getStateCourse(x : String) : String {
			return stateCourse[x];
		}
		
		public static function getVisibleButton(x : String) : Boolean {
			return visibleButton[x];
		}
		
		public static function isPublish(state : String) : Boolean {
			if (state == publish)
				return true
			else 
				return false
		}
	}	
}